<script setup lang="ts">

</script>

<template>
<div class="wrap">
  <div class="container">
    <header>Header</header>
    <main>Main</main>
    <nav>Nav</nav>
    <aside>Aside</aside>
    <footer>Footer</footer>
  </div>
  <div class="container">
    <header>Header</header>
    <main>Main</main>
    <nav>Nav</nav>
    <aside>Aside</aside>
    <footer>Footer</footer>
  </div>
</div>
</template>

<style scoped lang="scss">
.wrap  {
  width: 100vw;
  min-height: 100vh;
  font-family: "Exo", Arial, sans-serif;
  background-color: #557;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 1rem;
  place-content: center;
  padding: 1rem;

  .container {
    border: 1px dashed #f36;
    box-shadow: 0 0 0 6px rgb(0 0 0 / 13%);
    border-radius: 1px;
    display: grid;
    grid-template-areas:
      "header header header"
      "nav    main   aside"
      "footer footer  footer"
    ;

    &:last-child {
      display: grid;
      grid-template-areas:
        "header header header header"
        "nav    main   main   aside"
        "footer footer footer footer"
    ;
    }
    & > * {
      display: flex;
      justify-content: center;
      align-items: center;
      outline: 1px dashed #2938e9;
      outline-offset: -1px;
      border-radius: 4px;
      padding: 1rem;
      color: #fff;
      font-size: clamp(1rem, 1.125rem + 1vw, 1.5rem);
      text-shadow: 1px 1px 0 rgba(0 0 0 / 0.25);
    }

    header {
      background-color: #f1c2c6;
      grid-area: header;
    }

    footer {
      background-color: #dac2f1;
      grid-area: footer;
    }

    nav {
      background-color: #ccf1c2;
      grid-area: nav;
    }

    aside {
      background-color: #c2e9f1;
      grid-area: aside;
    }

    main {
      background-color: #f1ebc2;
      grid-area: main;
    }


  }
}
</style>
